<?php /* Smarty version 2.6.18, created on 2016-11-30 17:14:36
         compiled from achieve/achieve.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
      <section class="content">
          <div class="row">
              <section class="col-lg-12 connectedSortable">
                  <div class="box box-default box-solid">
                      <div class="box-header with-border">
                          <span class="fa fa-thumbs-up" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                          <p class="box-title">教学成果</p>
                          <a href="index.php?a=achieve.add&type=<?php echo $this->_tpl_vars['type']; ?>
" class="btn btn-primary btn-sm" style="float:right; color:#fff;">新 增</a>
                      </div>
                      <div class="box-body">
                          <!--检索-->
                          <form name="myform" action="" method="post">
                          <div class="col-md-3 form-group">
                              <label class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                  级别：
                              </label>
                              <div class="input-group col-md-8 col-xs-12">
                                  <select class="form-control" name="prizelv">
                                      <option value="all"> 全部 </option>
                                      <?php $_from = $this->_tpl_vars['prizelv']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                      <option value="<?php echo $this->_tpl_vars['value']['prizelv_id']; ?>
" <?php if ($this->_tpl_vars['lv'] == $this->_tpl_vars['value']['prizelv_id']): ?>selected<?php endif; ?>> <?php echo $this->_tpl_vars['value']['prizelv_name']; ?>
</option>
                                      <?php endforeach; endif; unset($_from); ?>
                                  </select>
                              </div>
                          </div>
                          <div class="col-md-3 form-group" style="padding:0;">
                              <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
                                  获奖名次：
                              </label>
                              <div class="input-group col-md-8 col-xs-12">
                                  <select class="form-control" name="prize">
                                      <option value="all"> 全部 </option>
                                      <?php $_from = $this->_tpl_vars['prize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                      <option value="<?php echo $this->_tpl_vars['value']['prize_id']; ?>
" <?php if ($this->_tpl_vars['rank'] == $this->_tpl_vars['value']['prize_id']): ?>selected<?php endif; ?>> <?php echo $this->_tpl_vars['value']['prize_name']; ?>
</option>
                                      <?php endforeach; endif; unset($_from); ?>
                                  </select>
                              </div>
                          </div>
                          <div class="col-md-5 col-xs-12 form-group" style="padding:0;">
                              <label for="inputPassword3" class="col-sm-2 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
                                  时间：
                              </label>
                              <div class="input-group col-md-4" style="float:left;">
                                  <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['from']; ?>
" id="from" name="from">
                                  <div class="input-group-addon" style="padding:6px 7px;">
                                      <i class="fa fa-calendar"></i>
                                  </div>
                              </div>
                              <span style="float:left;">  ~  </span >
                              <div class="input-group col-md-4" style="float:left;">
                                  <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['to']; ?>
" id="to" name="to">
                                  <div class="input-group-addon" style="padding:6px 7px;">
                                      <i class="fa fa-calendar"></i>
                                  </div>
                              </div>
                          </div>
                          <div class="col-md-1 col-xs-12" style="padding:0">
                              <button type="submit" class="btn btn-warning">查 询</button>
                          </div>
                          <div style="clear:both; height:10px;"></div>
                          <!--检索-->
                          <a href="index.php?a=achieve.list&type=1" <?php if ($this->_tpl_vars['type'] == 1): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>集体获奖</a>
                          <a href="index.php?a=achieve.list&type=2" <?php if ($this->_tpl_vars['type'] == 2): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>教师获奖</a>
                          <a href="index.php?a=achieve.list&type=3" <?php if ($this->_tpl_vars['type'] == 3): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>课件获奖</a>
                          <a href="index.php?a=achieve.list&type=4" <?php if ($this->_tpl_vars['type'] == 4): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>课例获奖</a>
                          <a href="index.php?a=achieve.list&type=5" <?php if ($this->_tpl_vars['type'] == 5): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>学生获奖</a>
                          <a href="index.php?a=achieve.list&type=7" <?php if ($this->_tpl_vars['type'] == 7): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>指导教师奖</a>
                          <a href="index.php?a=achieve.list&type=6" <?php if ($this->_tpl_vars['type'] == 6): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>>论文著作</a>
                          <span style="float:right"> 总共有<?php echo $this->_tpl_vars['count']; ?>
条记录</span>
                          <table class="table table-bordered table-striped" id="mytable">
                              <?php if ($this->_tpl_vars['type'] < 6): ?>
                              <thead>
                              <tr style=" background-color:#5fb2dc;">
                                  <td>获奖名称</td>
                                  <td>主办单位</td>
                                  <td>级别</td>
                                  <td>名次</td>
                                  <td>获奖者</td>
                                  <td>获奖时间</td>
                                  <?php if ($this->_tpl_vars['type'] == 5): ?>
                                  <td>第一指导老师</td>
                                  <td>其他指导老师</td>
                                  <?php endif; ?>
                                  <td>备注</td>
                                  <td>附件</td>
                                  <td  width="140">操作</td>
                              </tr>
                              </thead>
                              <?php $_from = $this->_tpl_vars['achieve_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                              <tr>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_name']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_unit']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_lv']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_rank']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_owner']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_time']; ?>
</td>
                                  <?php if ($this->_tpl_vars['type'] == 5): ?>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_teach']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_teachers']; ?>
</td>
                                  <?php endif; ?>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_remark']; ?>
</td>
                                  <td><a href="upload/achieve_file/<?php echo $this->_tpl_vars['value']['achieve_file']; ?>
" download="" style="color:#666">附件</a></td>
                                  <td>
                                      <a href="index.php?a=achieve.info&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-success btn-sm" title="查看"><i class="fa fa-search"></i></a>
                                      <a href="index.php?a=achieve.update&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-warning btn-sm" title="修改"><i class="fa fa-edit (alias)"></i></a>
                                      <a href="index.php?a=achieve.del&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-danger btn-sm" title="删除" onclick="if(confirm('警告！确认删除信息?')==false)return false;"><i class="fa fa-trash"></i></a>
                                  </td>
                              </tr>
                              <?php endforeach; endif; unset($_from); ?>
                              <?php endif; ?>

                              <?php if ($this->_tpl_vars['type'] == 6): ?>
                              <thead>
                              <tr style=" background-color:#5fb2dc;">
                                  <td>获奖名称</td>
                                  <td>出版社</td>
                                  <td>书号</td>
                                  <td>所在页</td>
                                  <td>级别</td>
                                  <td>发表者</td>
                                  <td>出版时间</td>
                                  <td>备注</td>
                                  <td>附件</td>
                                  <td  width="140">操作</td>
                              </tr>
                              </thead>
                              <?php $_from = $this->_tpl_vars['achieve_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                              <tr>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_name']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_publish']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_bookno']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_page']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_lv']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_owner']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_time']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_remark']; ?>
</td>
                                  <td><a href="index.php?a=achieve.file&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
&fname=<?php echo $this->_tpl_vars['value']['achieve_file']; ?>
" style="color:#666"><?php echo $this->_tpl_vars['value']['achieve_fname']; ?>
</a></td>
                                  <td>
                                      <a href="index.php?a=achieve.info&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-success btn-sm" title="查看"><i class="fa fa-search"></i></a>
                                      <a href="index.php?a=achieve.update&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-warning btn-sm" title="修改"><i class="fa fa-edit (alias)"></i></a>
                                      <a href="index.php?a=achieve.del&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-danger btn-sm" title="删除" onclick="if(confirm('警告！确认删除信息?')==false)return false;"><i class="fa fa-trash"></i></a>
                                  </td>
                              </tr>
                              <?php endforeach; endif; unset($_from); ?>
                              <?php endif; ?>
                              <?php if ($this->_tpl_vars['type'] == 7): ?>
                              <thead>
                              <tr style=" background-color:#5fb2dc;">
                                  <td>获奖名称</td>
                                  <td>获奖者</td>
                                  <td>获奖级别</td>
                                  <td>第一指导老师</td>
                                  <td>本人排名</td>
                                  <td>授奖单位</td>
                                  <td>获奖时间</td>
                                  <td>备注</td>
                                  <td>附件</td>
                                  <td  width="140">操作</td>
                              </tr>
                              </thead>
                              <?php $_from = $this->_tpl_vars['achieve_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                              <tr>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_name']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_owner']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_lv']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_teach']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_trank']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_unit']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_time']; ?>
</td>
                                  <td><?php echo $this->_tpl_vars['value']['achieve_remark']; ?>
</td>
                                  <td><a href="index.php?a=achieve.file&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
&fname=<?php echo $this->_tpl_vars['value']['achieve_file']; ?>
" style="color:#666"><?php echo $this->_tpl_vars['value']['achieve_fname']; ?>
</a></td>
                                  <td>
                                      <a href="index.php?a=achieve.info&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-success btn-sm" title="查看"><i class="fa fa-search"></i></a>
                                      <a href="index.php?a=achieve.update&type=<?php echo $this->_tpl_vars['type']; ?>
&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-warning btn-sm" title="修改"><i class="fa fa-edit (alias)"></i></a>
                                      <a href="index.php?a=achieve.del&achieve_id=<?php echo $this->_tpl_vars['value']['achieve_id']; ?>
" class="btn btn-danger btn-sm" title="删除" onclick="if(confirm('警告！确认删除信息?')==false)return false;"><i class="fa fa-trash"></i></a>
                                  </td>
                              </tr>
                              <?php endforeach; endif; unset($_from); ?>
                              <?php endif; ?>

                          </table>
                              <div class="box-footer">
                                  <?php echo $this->_tpl_vars['page']; ?>

                              </div>
                              </form>
                      </div><!--box-body -->
                  </div><!--box box-default box-solid-->
              </section>
          </div><!--row-->
      </section>
 </div>
  <!--主要内容结束-->
 
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
    $(function() {
        $( "#from" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#to" ).datepicker( "option", "minDate", selectedDate );
            }
        });
        $( "#to" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#from" ).datepicker( "option", "maxDate", selectedDate );
            }
        });
    });
</script>
